package com.uduew.sjd.exception;

import androidx.annotation.NonNull;

import com.uduew.sjd.bean.HttpBean;
import com.hjq.http.exception.HttpException;

public final class ResultException extends HttpException {

    private final HttpBean<?> mData;

    public ResultException(String message, HttpBean<?> data) {
        super(message);
        mData = data;
    }

    public ResultException(String message, Throwable cause, HttpBean<?> data) {
        super(message, cause);
        mData = data;
    }

    @NonNull
    public HttpBean<?> getHttpData() {
        return mData;
    }
}
